import request from "@/utils/request";
/**
* @exports 陪玩详情接口
* @param params 
* @returns Promise
*/
export const detail = (params: playWithDetailParams) => {
    return request.post<playWithDetailResult>("/play-with/detail", params);
}
/**
* @exports 陪玩保存接口
* @param params 
* @returns Promise
*/
export const save = (params: playWithParams) => {
    return request.post("/play-with/save", params);
}
/**
* @exports 陪玩更新接口
* @param params 
* @returns Promise
*/
export const update = (params: { playWithId: string } & playWithParams) => {
    return request.post("/play-with/update", params);
}
/**
* @exports 陪玩删除接口
* @param params 
* @returns Promise
*/
export const deletePlayWith = (params: playWithDetailParams) => {
    return request.post("/play-with/remove", params);
}
/**
* @exports 陪玩list接口
* @param params 
* @returns Promise
*/
export const list = (params: { playWithName: string, pageSize?: number, pageNum?: number }) => {
    return request.post<{ list: playWithDetailResult[] }>("/play-with/list", params);
}